<template>
    <el-card class="box-card">
        <el-form :inline="true" class="demo-form-inline">
            <el-form-item label="查询条件">
                <el-input placeholder="查询条件"></el-input>
            </el-form-item>
            <el-form-item>
                <el-button type="primary">查询</el-button>
            </el-form-item>
            <el-button type="primary">新建</el-button>
        </el-form>
        <el-table :data="tableData">
            <el-table-column prop="date" label="日期">
            </el-table-column>
            <el-table-column prop="name" label="姓名">
            </el-table-column>
            <el-table-column prop="address" label="地址">
            </el-table-column>
            <el-table-column
                fixed="right"
                label="操作"
                width="100">
                <template slot-scope="scope">
                    <el-button @click="handleClick(scope.row)" type="text" size="small">查看</el-button>
                    <el-button type="text" size="small">编辑</el-button>
                </template>
            </el-table-column>
        </el-table>
    </el-card>
</template>

<script>
export default {
  name: 'Table',
  data () {
    const item = {
      date: '2016-05-02',
      name: '王小虎',
      address: '上海市普陀区金沙江路 1518 弄'
    }
    return {
      msg: 'Welcome to Your Vue.js App',
      tableData: Array(20).fill(item)
    }
  }
}
</script>
